import service from '../request'

// 获取模拟事件名称下拉框
export function getsimulationListName() {
  return service({
    url: '/simulation/list/name',
    method: 'get',
  })
}
//获取模拟训练场景下拉框
export function getsimulationSceneName() {
  return service({
    url: '/simulation/scene/name',
    method: 'get',
  })
}

// 模拟训练
export function postsimulationadd(data) {
  return service({
    url: '/simulation/add',
    method: 'post',
    data,
  })
}

// 派遣任务
export function postsimulationtask(data) {
  return service({
    url: '/simulation/dispatch',
    method: 'post',
    data,
  })
}

//获取派遣任务列表
export function getsimulationdisList() {
  return service({
    url: '/simulation/dispatch/list',
    method: 'get',
  })
}

//获取派遣任务详情
export function getsimulationdisListId(id) {
  return service({
    url: `/simulation/dispatch/list/${id}`,
    method: 'get',
  })
}

//获取派遣任务成功
export function putsimulationsuccListId(id) {
  return service({
    url: `/simulation/dispatch/status/${id}`,
    method: 'put',
  })
}

/* 任务信息 */

//获取通知信息列表
export function getsimulationinforList() {
  return service({
    url: '/simulation/information/list',
    method: 'get',
  })
}
// 发布信息
export function postsimulationinfor(data) {
  return service({
    url: '/simulation/post/information',
    method: 'post',
    data,
  })
}
